var passcode = "secret passcode";
class Employee {
	private _fullName: string;
	get fullName(): string {
		return this._fullName;
	}
	set fullName(newName: string) {
		if (passcode && passcode == "secret passcode") {
			this._fullName = newName;
		} else {
			console.error("Error");
		}
	}
}
var employee = new Employee();
employee.fullName = "Bob Smith";
if (employee.fullName) {
	console.log(employee.fullName);
}
